package lambda;

import java.io.File;
import java.io.FileFilter;

public class LambdaDemo2 {
    public static void main(String[] args) {
        File dir = new File(".");
        if (dir.isDirectory()) {
            File[] subs = dir.listFiles(pathname -> pathname.getName().startsWith("."));
            for (File sub : subs) {
                System.out.println(sub);
            }
        }
    }
}
